package cn.jmz.micpro.common.enums;

/**
 * cn.jmz.micpro.common.enums
 *
 * @author JMZ
 * @date 2021/12/13 21:43
 */
public enum BaseEnum {

    SUCCESS("200","SUCCESS"),
    ERROR("500","ERROR");

    private final String code;
    private final String msg;

    BaseEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return String.format("（%s）: %s",code,msg);
    }
}
